package com.scau.model.business;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity(name = "purchase_detail")
public class PurchaseDetail implements Serializable {
	private Long id;
	private Long purchase_id;// 采购单号
	private Long supplier_material_id;// 材料料号
	private Double amount;// 数量
	private Long status;// 采购状态
	private String comments;// 备注

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPurchase_id() {
		return purchase_id;
	}

	public void setPurchase_id(Long purchase_id) {
		this.purchase_id = purchase_id;
	}

	public Long getSupplier_material_id() {
		return supplier_material_id;
	}

	public void setSupplier_material_id(Long supplier_material_id) {
		this.supplier_material_id = supplier_material_id;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	@Override
	public String toString() {
		return "id="+id+" purchase_id="+purchase_id+" supplier_material_id="+supplier_material_id+" amount="+amount+" status="+status+" comments="+comments;
	}

}
